﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CanSWAT.ArcSWAT
{
    /// <summary>
    /// A elevation band in a subbasin. This definition will be saved in table sub.
    /// </summary>
    class ElevationBand
    {
        private float _elevation;
        private float _fraction;
        private float _initialSnow;

        public ElevationBand(float elev, float fr, float snow)
        {
            _elevation = elev;
            _fraction = fr;
            _initialSnow = snow;
        }

        public float Elevation
        {
            get { return _elevation; }
        }

        public float Fraction
        {
            get { return _fraction; }
        }

        public float IntialSnow
        {
            get { return _initialSnow; }
        }

        public override string ToString()
        {
            return string.Format(
                "Elevation = {0:F2},Fraction = {1:F4}, Initial Snow = {2:F0}", 
                Convert.ToDouble(Elevation), Convert.ToDouble(Fraction), 
                Convert.ToDouble(IntialSnow));
        }
    }
}
